1. Full backup and incremental backup 1.1 full-scale backupFull-volume data is all the data in the database, and a full backup is the backup of all the data in the database.Back Up all libraries:mysqldump -uroot -p123456 -S /data/3306/mysql.sock -F -
1. Full backup and incremental backup 1.1 full-scale backupFull-volume data is all the data in the database, and a full backup is the backup of all the data in the database.Back Up all libraries:mysqldump -uroot -p123456 -S /data/3306/mysql.sock -F -
1 Overview1.1 IntroductionXtrabackup is a MySQL database backup tool provided by Percona, officially described, which is the world's only one by one open source tools that enable hot provisioning of InnoDB and XTRADB databases.PXB (Percona
We use the automatic batch processing program to back up the data. It can generate a backup file on a given day and save the data on a daily basis to a corresponding directory, it should be implemented in combination with windows scheduled
A Linux server scheduled backup
The first step is to create a new *.sh file.
New in Home directory
autobackupmysql.sh
#!/bin/sh# File:/home/mysql/backup.sh# Database InfoDb_name= "Test"Db_user= "Root"db_pass= "Root"# others VARsBin_dir=
First: Create a new batch file Backup.datThe code is as follows:net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%//ynet start MySQLNote: There are spaces in the path in the batch command, you
MYSQL database automatic local remote dual-backup MYSQL incremental backup to build a high-security E-commerce website (automatic local/remote dual-backup of website files and databases) architecture diagram
We will continue to introduce the
The first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%
One, MySQL data backup 1.1, mysqldump command backup dataProvides a handy tool for command line export of database data and files in MySQL mysqldump, we can directly implement the export of database content through the command line dump, first we
First: New batch file Backup.dat, which enters the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%//ynet start
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.